const { parsePageNation } = require('../utils/tools');

const pageNation = async (req,res,next) => {
	req.page = parsePageNation(req.query || {});
	next();
};

module.exports = { pageNation };
